/**
 * Created with IntelliJ IDEA.
 * User: skyline{http://my.oschina.net/skyline520}
 * Date: 12-11-19
 * Time: 上午9:44
 * To change this template use File | Settings | File Templates.
 */
Ext.define('Airways.view.system.operation.RightPanel',{
    extend:'Ext.form.Panel',
    alias : 'widget.rightPanel',
    iconCls:'grid',
    autoScroll:true,
    split:true,
    title: '菜单详细信息',
    height: 100,
    frame: true,
    initComponent:function (){
        this.items = this.buildItems();
        this.callParent(arguments);
    },
    buildItems:function (){
        return [{
            xtype:'fieldset',
            title:'基本信息',
            width:800,
            layout: {
                type: 'table',
                columns: 2
            },
            defaults: {
                xtype:'textfield',
                labelAlign:'right',
                labelWidth: 100,
                width:300,
                readOnly:true
            } ,
            items:[{
                name:'menuName',
                fieldLabel:'菜单名称'
            },{
                name:'iconCls',
                fieldLabel:'菜单图标'
            },{
                name:'menuController',
                fieldLabel:'菜单控制器',
                colspan:2,
                width:600
            },{
                name:'menuView',
                fieldLabel:'菜单视图',
                colspan:2,
                width:600
            },{
                name:'collapsedCls',
                fieldLabel:'折叠图标'
            },{
                name:'expandedCls',
                fieldLabel:'展开图标'
            },{
                name:'menuLevel',
                fieldLabel:'菜单级别'
            },{
                name:'menuIndex',
                fieldLabel:'菜单排序'
            },{
                fieldLabel:'菜单状态',
                xtype: 'radiogroup',
                items: [
                    {boxLabel: '启用', name: 'status',inputValue: '1',readOnly:true},
                    {boxLabel: '禁用', name: 'status',inputValue: '0',readOnly:true},
                ]
            },{
                name:'createUser',
                fieldLabel:'创建人'
            },{
                name:'createDate',
                fieldLabel:'创建日期'
            },{
                name:'modifyUser',
                fieldLabel:'最后一次更新人'
            },{
                name:'modifyDate',
                fieldLabel:'最后一次更新日期'
            }]
        }]
    }
});
